'use strict';

function choose_no_repeat_number(collection) {
  let result=[];
  let sum=0;
  for(let i=0;i<collection.length;)
    {
      sum=0;
      for(let j=i;j<collection.length;j++)
        {
          if(collection[i]==collection[j])
            sum+=1;
        }
      result.push(collection[i]);
      i+=sum;
    }
  return result;
}

module.exports = choose_no_repeat_number;
